<?php if ($comsel != 1) :?>
<div id="breadCrumb0" class="breadCrumb module">
<ul>
	<li><a href="<?=site_url("main/home")?>">Home</a></li>
	<li><a href="<?=site_url("company/companylist")?>">Companies List</a></li>
	<li>Companiy Creation</li>
</ul>
</div>
<?php endif;?>

<script type="text/javascript">
	function zeroAdd(elt, width) {
		val_to_add = zeroFill(elt.value, width);
		elt.value = val_to_add;
	}
</script>
<br/>
<h2>Company creation</h2>
<?=k_error($error)?><br/>
<form name="myForm" method="post" action="<?=site_url("company/submitcreate")?>">
<div class="form_line">
	<div style="float: left;">Company number</div>
	<div style="padding-left: 150px"><input type="text" name="com_number" value="<?=htmlspecialchars($com_number)?>" size="2" maxlength="3" onkeypress="return isNumberKey(event)" onblur="zeroAdd(this, 3);" /></div>
</div>
<div  class="form_line">
	<div style="float: left;">Company name</div>
	<div style="padding-left: 150px"><input type="text" name="com_name"  value="<?=htmlspecialchars($com_name)?>"/></div>
</div>

<div class="form_line">
	<div style="float: left;">Description</div>
	<div style="padding-left: 150px"><textarea name="com_desc"><?=htmlspecialchars($com_desc)?></textarea></div>
</div>

<div class="form_line">
	<div style="float: left;">Company code</div>
	<div style="padding-left: 150px"><input type="text" name="com_code" value="<?=htmlspecialchars($com_code)?>"/></div>
</div>

<div class="form_line">
	<div style="float: left;">VAT number</div>
	<div style="padding-left: 150px"><input type="text" name="com_vat_num"  value="<?=htmlspecialchars($com_vat_num)?>"/></div>
</div>

<div class="form_line">
	<div style="float: left;">Address</div>
	<div style="padding-left: 150px"><textarea name="com_address"><?=htmlspecialchars($com_address)?></textarea></div>
</div>

<div class="form_line">
	<div style="float: left;">Phone</div>
	<div style="padding-left: 150px"><input type="text" name="com_phone" value="<?=htmlspecialchars($com_phone)?>"/></div>
</div>

<div class="form_line">
	<div style="float: left;">Email</div>
	<div style="padding-left: 150px"><input type="text" name="com_email" value="<?=htmlspecialchars($com_email)?>"/></div>
</div>

<div class="form_line">
	<div style="float: left;">Fax</div>
	<div style="padding-left: 150px"><input type="text" name="com_fax" value="<?=htmlspecialchars($com_fax)?>"/></div>
</div>

<div class="form_line">
	<input type="submit" value="Save" />
</div>

</form>